package pers.linkong.asr.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import pers.linkong.asr.domain.ImageBean;
import pers.linkong.asr.domain.StudentBean;

// 学生
public interface StudentMapper {
	// 增
	public int addStudent(StudentBean student);
	public int addStudentClass(StudentBean student);
	
	// 删
	public int deleteStudent(int sid);
	public int deleteStudentClass(int sid);
	
	// 查
	public StudentBean getStudentById(int sid);
	
	public List<ImageBean> getImageById(int sid);
	
	// 改
	public int updateStudent(StudentBean student);
	public int updateStudentClass(StudentBean student);

	// 分页
	public List<StudentBean> findStudentByPage(
			@Param("student") StudentBean student,
			@Param("start") long start,
			@Param("limit") long limit);
	
	// 统计
	public long getStudentCount(@Param("student") StudentBean student);
	

}
